package com.ideaction.controller;

import com.ideaction.globalconst.Result;
import com.ideaction.req.PlayerCommonReqBody;
import com.ideaction.service.FuncontrolService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 通用功能控制,返回需要自定义控制的功能,具体是展示还是隐藏,根据type去配置,具体的Sid代表什么功能,服务器 不用关心,只需要配置上,客户端去写逻辑
 *
 * @author ZGame
 */
@RestController
@Slf4j
public class FuncControlController {
    
    @Autowired
    private FuncontrolService funcontrolService;
    
    @PostMapping("/FuncControl")
    public String funcControll(@RequestBody PlayerCommonReqBody playerCommonReqBody) {
        return Result.build().response();
        //		Result r = Result.build();
        //		r.put("FuncControl", funcontrolService.getFuncList(playerCommonReqBody));
        //		return r.response();
    }
}
